package com.jrh.common.exception;

/**
 * 类UserAlreadyExistsException.java的实现描述：TODO 类实现描述
 * 
 * @author mmyjse@gmail.com 2012-7-29 下午7:36:13
 */
public class UserAlreadyExistsException extends Exception {

    private static final long  serialVersionUID    = 9182617820256703047L;

    public static final String ERROR_CODE_LOGINID  = "u001";
    public static final String ERROR_CODE_NICKNAME = "u002";
    private String             errorCode;

    public UserAlreadyExistsException(){
    }

    public UserAlreadyExistsException(String errorCode, String message){
        super(message);
        this.errorCode = errorCode;
    }

    public UserAlreadyExistsException(String message){
        super(message);
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

}
